#!/usr/bin/env python3.3

from euler import isPalindrome

max=0
for i in range(999,99,-1):
  for j in range(i,99,-1):
    p=i*j
    if p>max: #fast test
      if isPalindrome(p): #slower test
        max=p
print(max)
